<?php

namespace App\Http\Requests\Admin;


class ProductRequest extends Request
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        switch ($this->method()) {
            case "POST":
                return [
                    'name' => 'required',
                    'image' => 'required',
                    'brand_id' => 'required',
                ];
                break;
            default:
                return [];
                break;
        }

    }
}
